package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.ChannelJoyCoinsDataDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface ChannelJoyCoinsDataDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChannelJoyCoinsDataDO record);

    int insertSelective(ChannelJoyCoinsDataDO record);

    ChannelJoyCoinsDataDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChannelJoyCoinsDataDO record);

    int updateByPrimaryKey(ChannelJoyCoinsDataDO record);

    List<ChannelJoyCoinsDataDO> getList(@Param("startTime") String startTime,
                                       @Param("endTime") String endTime,
                                       @Param("channelList") List<String> channelList,
                                       @Param("offset") int offset,
                                       @Param("pageSize") int pageSize,
                                       @Param("orderType")String orderType,
                                       @Param("orderBy")String orderBy);


    int getCount(@Param("startTime") String startTime,
                 @Param("endTime") String endTime,
                 @Param("channelList") List<String> channelList);
}